% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{pw_delta_rdd}
\alias{pw_delta_rdd}
\title{Calculates prognosis-weighted delta for RD designs}
\usage{
pw_delta_rdd(
  data,
  covariates,
  running_var,
  treatment,
  outcome,
  standardize = TRUE,
  simulation = FALSE,
  rd_estimator = "h",
  ...
)
}
\arguments{
\item{data}{data.frame containing covariates, treatment assignment, and outcome variable}

\item{covariates}{character vector of covariate names}

\item{running_var}{character string with running variable name}

\item{treatment}{name of variable indicating (binary) treatment assigned}

\item{outcome}{name of outcome variable}

\item{standardize}{logical. Whether to standardize data inside function}

\item{simulation}{logical. Whether running the function on bootstrap sample}

\item{rd_estimator}{character. Whether to use the conventional ("h") or the bias-corrected local-polynomial point estimator ("b"). See \code{rdrobust()} for more details. Defaults to conventional estimate ("h").}

\item{...}{arguments passed on to \code{rdrobust} function. If \code{rdrobust()} arguments \code{y} and \code{covs} are not specified, they will take the values of the variables defined by \code{outcome} and \code{covariates}, respectively. All other arguments, if not specified, will take the default values in \code{rdrobust()}}
}
\description{
Calculates prognosis-weighted delta for RD designs
}
